package com.weds.test_service.controller;

import com.weds.test_service.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Author lihw
 * @Date 2024/2/29 10:34
 */
@RestController
@RequestMapping("/test")
public class TestController {


    @GetMapping("get_user")
    public List<User> getUserList(){
        User user = new User();
        user.setUserId(1);
        user.setUserName("lhw");
        List<User> list = new ArrayList<>();
        list.add(user);
        return list;
    }
}
